第 2 步:让我们为dancer添加一个动作!

  • 并将Left Key拖到程序的底部。
  • left_key()事件中,将 .move_left .move_left() ) 中的整数更改为100
  • 通过将变量名称从sprite更改为dancer.move_left()分配给dancer
  • 运行您的程序并按左箭头键来测试您的事件!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)